import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigDeathRecords = data => createFormAPI('/admin/pigDeathRecords', 'post', data)
export const deletePigDeathRecords= data => createAPI(`/admin/pigDeathRecords/${data.id}`, 'delete', data)
export const updatePigDeathRecords= data => createAPI('/admin/pigDeathRecords', 'put', data)
export const selectPigDeathRecords= data => createAPI('/admin/pigDeathRecords', 'get', data)
export const pigDeathRecordsNum=data =>createAPI('/admin/pigDeathRecordsNum',"get",data)

